import utils from '@/utils'

function requestPost(url, config) {
  return utils.request.send('user/' + url, config)
}

export default {
  loginByUserName: data => requestPost('loginByUserName', { data }),
  getUserInfo: () => requestPost('getUserInfo'),
  getPermission: () => requestPost('getPermission'),
  logout: () => requestPost('logout')
}

